<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<html>
<head>
	<title>PCSYS</title>
</head>
<body>
<% 
if(session.getAttribute("userInfo") != null){  
    response.sendRedirect("../welcome.html");
}  
%>
		<form:form commandName="commandUserInfo" method="POST" action="signup.html">
			Username: <form:input path="username" /><form:errors path="username" /><br />
			password: <form:password path="password" /><form:errors path="password" /><br />
			Confirm Password: <form:password path="confirmPassword" /><form:errors path="confirmPassword" /><br />
			Password Hint: <form:input path="passwordHint" /><form:errors path="passwordHint" /><br />
			First Name: <form:input path="firstName" /><form:errors path="firstName" /><br />
			Middle Name: <form:input path="middleName" /><form:errors path="middleName" /><br />
			Last Name: <form:input path="lastName" /><form:errors path="lastName" /><br />
			Email: <form:input path="email" /><form:errors path="email" /><br />
			<input type="submit" value="Sign Up" />
		</form:form>
</body>
</html>
